#ifndef _MESSENGER_H_
#define _MESSENGER_H_

#include "messenger_err.h"

#include "linphonecore.h"

#ifdef __cplusplus
extern "C"
{
#endif

int messenger_get_last_err();

int messenger_create(const LinphoneCoreVTable *vtable);
void messenger_destory();

void messener_iterator();

int messener_login(const char *username, const char *userid,
				   const char *passwd, const char *ha1,const char *realm);
				   
void messenger_logout();

#ifdef __cplusplus
}
#endif

#endif